﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>静态化测试 - Test</title>
    <link href="/Content/bootstrap.css" rel="stylesheet"/>
<link href="/Content/site.css" rel="stylesheet"/>
    
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="http://shiyousan.com" target="_blank">Test</a>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li><a href="/">主页</a></li>                    
                </ul>
            </div>
        </div>
    </div>
    <div class="container body-content">
        

<div class="row" style="margin-top:50px;">
    <div class="col-md-4">
        <hr />
        <div>
            <a class="btn btn-primary btn-lg" data-ajax="true" data-ajax-method="POST" data-ajax-success="OnSuccess" href="/Home/UseHtmlTemplateStatic">使用HTML模板生成静态页面</a>
        </div>
        <hr />
        <div>
            <a href="/StaticTemplate/ArticleTemplate.html" target="_blank">点击浏览HTML模板页面</a>
        </div>
    </div>
    <div class="col-md-4">
        <hr />
        <div>
            <a class="btn btn-primary btn-lg" data-ajax="true" data-ajax-method="POST" data-ajax-success="OnSuccess" href="/Home/UseViewEngineStatic">使用视图引擎实现页面静态化</a>
        </div>
        <hr />
        <div>
            <a href="/Home/Article" target="_blank">点击浏览视图模板页面</a>
        </div>
    </div>
    <div class="col-md-4">
        <hr />
        <div>
            <a class="btn btn-primary btn-lg" data-ajax="true" data-ajax-method="POST" data-ajax-success="OnSuccess" href="/Home/UseXmlStatic">使用XML实现页面静态化</a>
        </div>
        <hr />
        <div>
            <a href="/Home/Article" target="_blank">点击浏览视图模板页面</a>
        </div>
    </div>
</div>
<div id="divMessage">
</div>

    </div>

    <script src="/Scripts/jquery-1.10.2.js"></script>
<script src="/Scripts/jquery.unobtrusive-ajax.js"></script>

    <script src="/Scripts/bootstrap.js"></script>
<script src="/Scripts/respond.js"></script>

    
    <script type="text/javascript">
        function OnSuccess(message) {
            var msg = "<div class=\"alert alert-info\" role=\"alert\">" + message + "</div>";
            $("#divMessage").prepend(msg);
        }
    </script>

</body>
</html>
